import request from '@/utils/requestUtil'

/**
 * 用户登录
 * @param {Object} data
 */
export function memberLogin(data) {
	return request({
		method: 'POST',
		url: '/sso/login',
		header: {
			'content-type': 'application/x-www-form-urlencoded;charset=utf-8'
		},
		data: data
	})
}


/**
 * 查询用户信息
 */
export function memberInfo() {
	return request({
		method: 'GET',
		url: '/sso/info'
	})
}

/**
 * 新用户注册
 * @param {Object} data
 */
export function memberRegister(data) {
	return request({
		method: 'POST',
		url: '/sso/register',
		header: {
			'content-type': 'application/x-www-form-urlencoded;charset=utf-8'
		},
		data: data
	})
}
